package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.UserRangerPolicyRel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户和ranger中的策略的关系表 Mapper 接口
 * </p>
 *
 * @author hujz
 * @since 2020-01-02
 */
@Mapper
public interface UserRangerPolicyRelMapper extends BaseMapper<UserRangerPolicyRel> {

    List<UserRangerPolicyRel> selectAllListByProcIdAndList(@Param("userId") Integer userId, @Param("tableIds") List<Integer> tableIds);

    List<UserRangerPolicyRel> selectAllListByUserIdsAndTableId(@Param("tableId") Integer tableId, @Param("allUserIds") List<Long> allUserIds);
}
